FROM node:14.16.0-alpine3.13

RUN addgroup app && adduser -S -G app app
USER app

WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm config set registry https://registry.npmmirror.com/
COPY . . 

EXPOSE 3001 

CMD ["npm", "start"]